package com.supervision.manage.common

object DXKey {

    private const val REDIS_KEY_PREFIX = Const.REDIS_KEY_PREFIX

    fun getKeyOfMakeUserUidLock(uid: String): String {
        return String.format("%s.make.user.uid.%s.lock", REDIS_KEY_PREFIX, uid)
    }

    fun getKeyOfMakeProjectUidLock(uid: String): String {
        return String.format("%s.make.project.uid.%s.lock", REDIS_KEY_PREFIX, uid)
    }

    fun getKeyOfApiListAll(): String {
        return String.format("%s.api.list.all", REDIS_KEY_PREFIX)
    }

    fun getKeyOfRoleApiList(roleId: Long): String {
        return String.format("%s.user.api.list.role.%s", REDIS_KEY_PREFIX, roleId)
    }



}
